package com.hkp.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
public class ResearchProject {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String description;
    private Integer collegeId;
    private String leader;
    private Date startDate;
    private Date endDate;
    private Integer status; // 1:筹备 2:进行中 3:已结题
    private String attachmentPath;
    
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatetime;
    
    @Version
    private Integer version;
    
    @TableLogic
    private Integer deleted;
    
    // 用于联表查询时显示学院名称
    @TableField(exist = false)
    private String collegeName;
}